package com.dongqi.camera.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class CameraDTO {
    /**
     * id
     */
    private Long id;

    /**
     * 设备编号
     */
    private String deviceNo;

    /**
     * 摄像头id
     */
    private String cameraId;

    /**
     * 摄像头名称
     */
    private String cameraName;

    /**
     * 工作状态
     */
    private String status;

    /**
     * 安装时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date installTime;

    /**
     * 最近检修时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date repairTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 设备序列号
     */
    private String serialNo;

    /**
     * 通道
     */
    private String channelNo;

    /**
     * 流播放协议 （1-ezopen、2-hls、3-rtmp、4-flv）
     */
    private String protocol;

    /**
     * 返回前端的url
     */
    private String url;

    public CameraDTO(Long id, String deviceNo, String cameraId, String cameraName, String status, Date installTime, Date repairTime, Date createTime, Date updateTime, String serialNo, String channelNo, String protocol, String url) {
        this.id = id;
        this.deviceNo = deviceNo;
        this.cameraId = cameraId;
        this.cameraName = cameraName;
        this.status = status;
        this.installTime = installTime;
        this.repairTime = repairTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.serialNo = serialNo;
        this.channelNo = channelNo;
        this.protocol = protocol;
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public CameraDTO(Long id, String deviceNo, String cameraId, String cameraName, String status, Date installTime, Date repairTime, Date createTime, Date updateTime, String serialNo, String channelNo, String protocol) {
        this.id = id;
        this.deviceNo = deviceNo;
        this.cameraId = cameraId;
        this.cameraName = cameraName;
        this.status = status;
        this.installTime = installTime;
        this.repairTime = repairTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.serialNo = serialNo;
        this.channelNo = channelNo;
        this.protocol = protocol;
    }

    public CameraDTO() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    public String getCameraId() {
        return cameraId;
    }

    public void setCameraId(String cameraId) {
        this.cameraId = cameraId;
    }

    public String getCameraName() {
        return cameraName;
    }

    public void setCameraName(String cameraName) {
        this.cameraName = cameraName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getInstallTime() {
        return installTime;
    }

    public void setInstallTime(Date installTime) {
        this.installTime = installTime;
    }

    public Date getRepairTime() {
        return repairTime;
    }

    public void setRepairTime(Date repairTime) {
        this.repairTime = repairTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getChannelNo() {
        return channelNo;
    }

    public void setChannelNo(String channelNo) {
        this.channelNo = channelNo;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }
}
